timezone_location_get
Alias for DateTimeZone::getLocation - Returns the location information related to the time zone
timezone_location_get()
returns the location information of the given time zone.
Returns the location information of the specified time zone:
<?php $tz = timezone_open ( "America/New_York" ) ; echo timezone_location_get ( $tz ) ; ?>
Try it yourself
timezone_location_get ( object ) ;
parameter | describe |
---|---|
object | Required. Specifies the DateTimeZone object returned by timezone_open() . |